
	<!-- 当前所在位置 START -->
	{include file="_url.here.tpl"}
	<!-- 当前所在位置 END -->

	<!-- 商品图片与属性规格 START -->
	<div class="goods-prototype">

		<!-- 商品图 START -->
		<div class="aleft">

			<!-- 大图 START -->
			<div class="pic_show">
				<a class="jqzoom" rel="album" href="{$_s.up_dir}{$album_first.path}" title="{$goods.name}"><img src="{$_s.up_dir}thumb/400_400/{$album_first.path}" alt="{$album_first.alt}" /></a>
			</div>
			<!-- 大图 END -->

			<!-- 缩略图 START -->
			<div class="thumb_list">
				{foreach from=$albums key=key item=album}
				<a href="javascript:void(0);" {if $key == 0 || $key % 4 == 0}class="first"{/if} rel="{literal}{{/literal}gallery:'album', smallimage: '{$_s.up_dir}thumb/400_400/{$album.path}', largeimage: '{$_s.up_dir}{$album.path}', title:'{$album.alt}'{literal}}{/literal}"><img src="{$_s.up_dir}thumb/92_70/{$album.path}" /></a>
				{/foreach}
			</div>
			<div class="clear"></div>
			<!-- 缩略图 END -->

			<a href="{$_s.web_dir}index.php?mdl=goods&do=gallery&id={$goods.id}" class="magnify" target="_blank">查看大图</a>

		</div>
		<!-- 商品图 END -->
		
		<!-- 标题、属性、规格 START -->
		<div class="aright">
			<h2 class="tt">{$goods.name}</h2>

			<!-- 属性 START -->
			<div class="attribute pattern_line_right">
				<dl>
					<dt>本店价格：</dt><dd><b id="goods_price">{if $goods.price_min gt 0 && $goods.price_max gt 0}￥{$goods.price_min}&nbsp;-&nbsp;￥{$goods.price_max}{else}￥{$goods.integer}<sup class="sup">.{$goods.decimals}</sup>{/if}</b>（降价通知）</dd>
					<div class="clear"></div>
				</dl>
				<dl>
					<dt>买家评价：</dt><dd><i class="stars-gray"><i class="stars-gold" style="width:{$goods.stars}px;"></i></i></dd><dd>（{$goods.score}分，{$goods.comments}人评价）</dd>			
					<div class="clear"></div>
				</dl>
				<dl>
					<dt>库存：</dt><dd><b id="goods_stock">{$goods.quantity}{$goods.quantityunit}</b></dd>				
					<div class="clear"></div>
				</dl>
				<dl>
					<dt>销量：</dt><dd><img src="{$_s.theme_dir}images/shopping_cart.png" width="16" height="16" /><b>{$goods.sales}</b>笔<!-- （当月<b>36</b>笔） --></dd>
					<div class="clear"></div>
				</dl>
				{if $salesinfo}
				<dl>
					<dt>优惠信息：</dt><dd><b><a href="{$salesinfo.url}">{$salesinfo.title}</a></b></dd>				
					<div class="clear"></div>
				</dl>
				{/if}
			</div>
			<!-- 属性 END -->

			<!-- 品牌故事 START -->
			<div class="brand_story">
				<a href="{$brand.href}"><img src="{$_s.up_dir}thumb/{$brand.logo}" /></a>
				<div class="space5"></div>
				<ul class="single_line">
					{foreach from=$brand.related_news item=news}
					<li><a href="{$news.url}">{$news.title}</a></li>
					{/foreach}
				</ul>
			</div>
			<!-- 品牌故事 END -->

			<form id="fm_goods" action="{$_s.web_dir}index.php?mdl=cart&do=add" method="post" target="ajax">
				<input type="hidden" name="goodsid" value="{$goods.id}" />

				<!-- 规格 START -->
				<div class="prototype">

					<!-- 规格列表 START -->
					{foreach from=$specs key=prototypeid item=spec}
					<dl id="specs_all">
						<dt>{$spec.name}：</dt>
						
						{if $spec.type eq 'array'}
						<input type="hidden" name="specs[{$prototypeid}]" value="" />
						{foreach from=$spec.value key=key item=item}
						<dd><a href="#" dir="{$prototypeid}-{$key}"{if $item.price gt 0} title="￥{$item.price}" class="poshytip"{/if}>{$item.value}</a></dd>
						{/foreach}
						{else}
						<dd><input type="text" name="specs[{$prototypeid}]" value="{$spec.value}" class="input" />
							{if $spec.price gt 0}￥{$spec.price}{/if}</dd>
						{/if}
					</dl>
					<div class="clear"></div>
					{/foreach}
					<!-- 规格列表 END -->

					<!-- 数量 START -->
					<dl>
						<dt>数量：</dt>
						<dd><ul class="buy_num">
								<li><b id="number_sub" class="sub">-</b></li>
								<li><input type="text" name="number" id="number" value="1" class="input" /></li>
								<li><b id="number_add" class="add">+</b></li>
							</ul></dd>
					</dl>
					<div class="space10"></div>
					<!-- 数量 END -->

				</div>
				<!-- 规格 END -->

				<div class="action">
					<input type="submit" value="" class="add_to_cart" />
					<input type="button" value="" class="favorite" />
				</div>

			</form>

		</div>
		<!-- 标题、属性、规格 END -->

	</div>
	<!-- 商品图片与属性规格 END -->

	<div class="space20"></div>

	<!-- 主体区 -->
	<div class="area">

		<!-- 主体左边区 -->
		<div class="aleft">

			<!-- 相关分类 START -->
			<div class="sl_t_block bdcolor-green">
				<div class="tt">
					<em class="more"><a href="{$_linknav.cats}">+more</a></em><h2 class="color-green">相关分类</h2>
				</div>
				<div class="main-block">
					<ul class="single_line_cols related_category clearfix">
						{foreach from=$related_cats item=category_info}
						<li><a href="#">{$category_info.name}</a></li>
						{/foreach}
					</ul>
					<div class="clear"></div>
				</div>
			</div>
			<!-- 相关分类 END -->

			<div class="space20"></div>

			<!-- 浏览历史 START -->
			<div class="sl_t_block bdcolor-orange browser_history">
				<div class="tt">
					<!-- <em class="more"><a href="{$_s.pub_dir}goods/">+more</a></em> --><h2 class="color-orange">浏览历史</h2>
				</div>
				<div id="view_history" class="main-block hide">

					<!-- 历史列表 -->

					<div class="clear"></div>

				</div>
			</div>
			<!-- 浏览历史 END -->

		</div>

		<!-- 主体右边区 START -->
		<div class="aright">

			<!-- 人气组合 START -->
			<div class="secondary_tag_block">
				<div class="cmtab"><a href="#" class="first cur">人气组合</a><a href="#">相关文章</a><a href="#">同类商品</a></div>
				
				<!-- 人气组合 START -->
				<div class="main-block popur_combination">
					<div class="goods_item">
						{if $goods.recommend != ''}
						<div class="tag_{$goods.recommend}"><!-- 新 --></div>
						{/if}
						{if $goods.label !=	''}
						{if $goods.labeltype == '2'}
						<div class="tag_desc">{$goods.label}折</div>						
						{elseif $goods.labeltype == '1'}
						<div class="tag_desc">直降{$goods.label}元</div>
						{else}
						<div class="tag_desc">{$goods.label}</div>
						{/if}
						{/if}
						<div class="image tview">
							<div class="tcell">
								<div class="titem">
									<a href="{$goods.url}">
										<img src="{$_s.up_dir}thumb/200_180/{$goods.cover}" alt="{$goods.name}-{$goods.catname}" />
									</a>
								</div>
							</div>
						</div>
						<a href="{$goods.url}" title="{$goods.name}" class="title poshytip">{$goods.name}</a>
						<div class="price"><b>￥{$goods.price}</b></div>
					</div>
					<!-- 组合商品列表 START -->
					<ul class="list-combine">
						{foreach from=$combine_goods item=_goods}
						<li><span class="operation">+</span>
							<div class="goods_item">
								
								{if $goods.recommend != ''}
								<div class="tag_{$_goods.recommend}"><!-- 新 --></div>
								{/if}
								{if $goods.label !=	''}
								{if $goods.labeltype == '2'}
								<div class="tag_desc">{$_goods.label}折</div>						
								{elseif $goods.labeltype == '1'}
								<div class="tag_desc">直降{$_goods.label}元</div>
								{else}
								<div class="tag_desc">{$_goods.label}</div>
								{/if}
								{/if}
								<div class="image tview">
									<div class="tcell">
										<div class="titem">
											<a href="{$_goods.url}">
												<img src="{$_s.up_dir}thumb/200_180/{$_goods.cover}" alt="{$_goods.name}-{$_goods.catname}" />
											</a>
										</div>
									</div>
								</div>

								<a href="{$_goods.url}" title="{$goods.name}" class="title poshytip">{$_goods.name}</a>
								<div class="price"><input type="checkbox" name="combine[{$_goods.id}]" class="chbox" /><b>￥{$_goods.price}</b></div>
							</div></li>
						{/foreach}
					</ul>
					<!-- 组合商品列表 END -->

					<!-- 组合商品总价 START -->
					<span class="operation">=</span>
					<div class="convert pattern_line_right">
						<dl>
							<dt>原价：</dt><dd><b>￥{$combine_price_all}</b></dd>
							<div class="clear"></div>
							<dt>套餐价：</dt><dd><b>￥{$combine_price}</b></dd>
							<div class="clear"></div>
							<dt>立省：</dt><dd><b>￥{$combine_price_save}</b></dd>
							<div class="space10"></div>
							<dd><a href="javascript:showmsg_loading('计划开发中^_^');" class="buy_now"></a></dd>
						</dl>
					</div>
					<!-- 组合商品总价 END -->
					<div class="clear"></div>
				</div>
				<!-- 人气组合 END -->

				<!-- 相关文章 START -->
				<div class="main-block padding10 hide">
					<ol class="single_line">
						{foreach from=$related_news item=news}
						<li>&gt;&gt;&nbsp;<a href="{$news.url}" title="{$news.catname}"><em>{$news.publishtime}</em>{$news.title}</a></li>
						{/foreach}
					</ol>
				</div>
				<!-- 相关文章 END -->
				
				<!-- 同类商品 START -->
				<div class="main-block goods-list hide">
					{counter start=0 skip=1 print=false assign=index}
					{foreach from=$same_cat_goods key=key item=_goods}
					{counter}
					<div class="goods_item first-line{if $index > 1 && $index % 4 == 1} first-col{/if}">
						{if $goods.recommend != ''}
						<div class="tag_{$_goods.recommend}"><!-- 新 --></div>
						{/if}
						{if $_goods.label !=	''}
						{if $_goods.labeltype == '2'}
						<div class="tag_desc">{$_goods.label}折</div>						
						{elseif $_goods.labeltype == '1'}
						<div class="tag_desc">直降{$_goods.label}元</div>
						{else}
						<div class="tag_desc">{$_goods.label}</div>
						{/if}
						{/if}
						<div class="image tview">
							<div class="tcell">
								<div class="titem">
									<a href="{$_goods.url}">
										<img src="{$_s.up_dir}thumb/200_180/{$_goods.cover}" alt="{$_goods.name}-{$_goods.catname}" />
									</a>
								</div>
							</div>
						</div>
						<a href="{$_goods.url}" title="{$goods.name}" class="title poshytip">{$_goods.name}</a>
						<div class="price"><b>￥{$_goods.price}</b></div>
					</div>
					{/foreach}
					<div class="clear"></div>

				</div>
				<!-- 同类商品 END -->

			</div>
			<!-- 人气组合 END -->

			<div class="space20"></div>

			<!-- 属性、参数、清单、评价 START -->
			<div class="secondary_tag_block">
				<div class="cmtab"><a href="#" class="first cur">详细介绍</a><a href="#">规格参数</a><a href="#">包装清单</a><a href="#">评价信息</a></div>
				
				<div>

					<!-- 主要属性 START -->
					<div class="main-block pattern_line_right pattern-halve">

						<dl class="first-col"><dt>商品名称：</dt><dd>{$goods.name}</dd><div class="clear"></div></dl>
						<dl><dt>商品编号：</dt><dd>{$goods.sn}</dd><div class="clear"></div></dl>
						<dl><dt>类目：</dt><dd>{$category.name}</dd><div class="clear"></div></dl>
						<dl><dt>品牌：</dt><dd>{$brand.name}</dd><div class="clear"></div></dl>
						<dl><dt>重量：</dt><dd>{$goods.weight}{$goods.weightunit}</dd><div class="clear"></div></dl>

						<div class="clear"></div>
					</div>
					<!-- 主要属性 END -->

					<div class="space20"></div>

					<!-- 详细介绍 START -->
					<div class="main-content">
						{$goods.describe}
					</div>
					<!-- 详细介绍 END -->

				</div>


				<!-- 规格参数 START -->
				<div class="main-block pattern_line_right pattern-flush hide">
					<dl><dt>商品名称：</dt><dd>{$goods.name}</dd><div class="clear"></div></dl>
					<dl><dt>商品编号：</dt><dd>{$goods.sn}</dd><div class="clear"></div></dl>
					<dl><dt>类目：</dt><dd>{$category.name}</dd><div class="clear"></div></dl>
					<dl><dt>品牌：</dt><dd>{$brand.name}</dd><div class="clear"></div></dl>
					
					{foreach from=$attrs key=prototypeid item=attr}
					<dl><dt>{$attr.name}：</dt>
						<dd>{if $attr.type eq 'array'}
						{foreach from=$attr.value key=key item=item}{$item}{/foreach}
						{else}
						{$attr.value}
						{/if}</dd><div class="clear"></div></dl>
					{/foreach}
					<div class="clear"></div>
				</div>
				<!-- 规格参数 END -->

				<!-- 包装清单 START -->
				<div class="main-block pattern_line_right pattern-halve hide">
					{counter start=0 skip=1 print=false assign=index}
					{foreach from=$fittings_list item=fittings}
					{counter}
					<dl {if $index % 2 == 1}class="first-col"{/if}><dt>{$fittings.name}：</dt><dd>×{$fittings.num}</dd><div class="clear"></div></dl>
					{/foreach}

					<div class="clear"></div>
				</div>
				<!-- 包装清单 END -->

			</div>

			<div class="space20"></div>

			<!-- 评价信息 START -->
			<div class="sl_t_block bdcolor-red">
				<div class="tt">
					<h2 class="color-red">评价信息</h2>
				</div>

				<div class="main-block pattern_line_right evaluation-info">
					{if $scores}
					<dl>
						<dt>商品与描述相符：</dt>
						<dd><i class="stars-gray poshytip" title="{$scores.desc.score}分"><i class="stars-gold" style="width:{$scores.desc.stars}px;"></i></i></dd>
						{foreach from=$scores.desc.detail key=score item=row}
						<dd title="{$row.rate}%" class="poshytip">{$score}分&nbsp;<b>{$row.count}</b>人</dd>
						{/foreach}
						<div class="clear"></div>
					</dl>
					<dl>
						<dt>商家的服务态度：</dt>
						<dd><i class="stars-gray poshytip" title="{$scores.serv.score}分"><i class="stars-gold" style="width:{$scores.serv.stars}px;"></i></i></dd>
						{foreach from=$scores.serv.detail key=score item=row}
						<dd title="{$row.rate}%" class="poshytip">{$score}分&nbsp;<b>{$row.count}</b>人</dd>
						{/foreach}
						<div class="clear"></div>
					</dl>
					<dl>
						<dt>商家的发货速度：</dt>
						<dd><i class="stars-gray poshytip" title="{$scores.speed.score}分"><i class="stars-gold" style="width:{$scores.speed.stars}px;"></i></i></dd>
						{foreach from=$scores.speed.detail key=score item=row}
						<dd title="{$row.rate}%" class="poshytip">{$score}分&nbsp;<b>{$row.count}</b>人</dd>
						{/foreach}
						<div class="clear"></div>
					</dl>
					<div class="total">{$goods.score}分，{$goods.comments}人评价，<a href="#">详见评分细则&gt;&gt;&gt;</a></div>
					{else}
					<div class="total">暂无评价！</div>
					{/if}
				</div>

			</div>
			<!-- 评价信息 END -->

			<div class="space20"></div>

			<!-- 评价列表 START -->
			<div class="secondary_tag_block">
				<div id="evaluation_tab" class="cmtab">
					<a href="#all" class="first cur">全部评价</a><a href="#5">5分</a><a href="#4">4分</a><a href="#3">3分</a><a href="#2">2分</a><a href="#1">1分</a>
				</div>

				<div id="evaluation_all" class="evaluation-list">
					<!-- Ajax 加载 -->					
				</div>
				<div id="evaluation_5" class="evaluation-list hide">
					<!-- Ajax 加载 -->
				</div>
				<div id="evaluation_4" class="evaluation-list hide">
					<!-- Ajax 加载 -->
				</div>
				<div id="evaluation_3" class="evaluation-list hide">
					<!-- Ajax 加载 -->
				</div>
				<div id="evaluation_2" class="evaluation-list hide">
					<!-- Ajax 加载 -->
				</div>
				<div id="evaluation_1" class="evaluation-list hide">
					<!-- Ajax 加载 -->
				</div>

			</div>
			<!-- 评价列表 END -->

			

			<!-- 属性、参数、清单、评价 END -->

			<div class="space20"></div>


		</div>
		<!-- 主体右边区 END -->

	</div>

	<!--[if IE 6]>
	<script type="text/javascript" language="JavaScript" charset="utf-8">
		DD_belatedPNG.fix('.product_info a');
	</script>
	<![endif]-->
	<link rel="stylesheet" type="text/css" href="{$_s.js_dir}jQuery/jquery.jqzoom.css">
	<script type="text/javascript" language="JavaScript" charset="utf-8" src="{$_s.js_dir}jQuery/jquery.json.js"></script>
	<script type="text/javascript" language="JavaScript" charset="utf-8" src="{$_s.js_dir}jQuery/jquery.jqzoom-core-pack.js"></script>
	<script type="text/javascript" language="JavaScript" charset="utf-8">
	<!--
		var goodsid		= parseInt('{$goods.id}');
		var specs_json	= $.json.decode('{$specs_json}');
		var specs_info	= $.json.decode('{$specs_info}');
		var goods_price	= parseFloat('{$goods.price}');
		var quantity	= goods_quantity = parseInt('{$goods.quantity}');
		var quantityunit = '{$goods.quantityunit}';
	-->
	</script>
	<script type="text/javascript" language="JavaScript" charset="utf-8" src="{$_s.theme_dir}js/goods.view.js"></script>